package spectra.ee.web.sns.service;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import spectra.base.log.Logger;
import spectra.base.sql.ibatis.SqlMapperWeb;

/**
 * SNS 용  관련 클래스.
 * <p>
 * <ul>
 *   <li> 긴글 원문 보기 
 * </ul>
 *
 * @author eyjeong
 */
public class SnsServiceBase
{

    /** Logger객체. */
    private static Logger logger = Logger.getLoggerInstance(SnsServiceBase.class.getName());

    /** SqlMapClient 객체. */
    protected static SqlMapClient sqlMap = SqlMapperWeb.getSqlMapWebInstance();

    /**
     * 긴글  원문 내용 가져오기 
     * @param snsId
     * @return
     */
    public List selectLongTextBySnsId(String snsId)
    {
       	List list = null;
        try
        {
            list = (List)sqlMap.queryForList("Sns.selectLongTextBySnsId", snsId);
        }
        catch (SQLException e)
        {
            logger.error(e.getMessage());
            e.printStackTrace();
        }
        return list; 
    }
    
}
